<template>
  <div class="wft-w-h-100 flex-center">
    <el-divider :content-position="attrs.textPosition">{{ data.data }}</el-divider>
  </div>
</template>
<script>
import useRequestMixin from '../../../mixins/useRequest'
import useAttrsMixin from '../../../mixins/useAttrs'
export default {
  name: 'basicDivider',
  mixins: [useRequestMixin, useAttrsMixin],
  props: {
    curComp: {
      type: Object,
      required: true
    },
    data: {
      type: Object,
      default: () => ({})
    }
  },
  computed: {
    dividerStyle() {
      return {
        color: this.attrs.textColor,
        fontSize: this.attrs.textSize + 'px',
        borderColor: this.attrs.lineColor
      }
    }
  }
}
</script>
<style scoped>
.wft-w-h-100 {
  width: 100%;
  height: 100%;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}
</style>
